<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        section {
            width: 800px;
            height: 800px;
            border: 1px solid red;
            display: flex;
            /* 从左侧排序 */
            /* justify-content: flex-start; */

            /* 贴着右边对齐， 但是顺序不调整 */
            /* justify-content: flex-end; */

            /* 居中对齐 */
            /* justify-content: center; */

            /* 把没被占用的空间放到子元素中间，左右没有空隙 */
            /* justify-content: space-between; */

            /* 环绕子盒子，相当于给盒子加了margin */

            /* 主方向的内容 */
            justify-content: space-around;

            /* 内容的对齐方式，和主方向垂直的 */
            align-items: center;


        }

        div {
            width: 200px;
            height: 200px;
            background-color: pink;
        }
    </style>
</head>

<body>

    <section>
        <div>1</div>
        <div>2</div>
        <div>3</div>
    </section>



</body>

</html>